do With Suspending
suspend fun <T> Channel<suspend () -> Unit>.doWithSuspending(action: ActorAction<T>): T
Content copied to clipboard
Must be use with actor created by createActionsActor or createSafeActionsActor. Will send lambda which will execute action and return result.